package com.hckjsec.cloud.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hckjsec.cloud.mapper.AppletsWechatUserMapper;
import com.hckjsec.cloud.domain.AppletsWechatUser;
import com.hckjsec.cloud.service.IAppletsWechatUserService;

/**
 * 微信用户基础信息Service业务层处理
 * 
 * @author cyt
 * @date 2021-08-10
 */
@Service
public class AppletsWechatUserServiceImpl implements IAppletsWechatUserService 
{
    @Autowired
    private AppletsWechatUserMapper appletsWechatUserMapper;

    /**
     * 查询微信用户基础信息
     * 
     * @param openid 微信用户基础信息ID
     * @return 微信用户基础信息
     */
    @Override
    public AppletsWechatUser selectAppletsWechatUserById(String openid)
    {
        return appletsWechatUserMapper.selectAppletsWechatUserById(openid);
    }

    /**
     * 查询微信用户基础信息列表
     * 
     * @param appletsWechatUser 微信用户基础信息
     * @return 微信用户基础信息
     */
    @Override
    public List<AppletsWechatUser> selectAppletsWechatUserList(AppletsWechatUser appletsWechatUser)
    {
        return appletsWechatUserMapper.selectAppletsWechatUserList(appletsWechatUser);
    }

    /**
     * 新增微信用户基础信息
     * 
     * @param appletsWechatUser 微信用户基础信息
     * @return 结果
     */
    @Override
    public int insertAppletsWechatUser(AppletsWechatUser appletsWechatUser)
    {
        return appletsWechatUserMapper.insertAppletsWechatUser(appletsWechatUser);
    }

    /**
     * 修改微信用户基础信息
     * 
     * @param appletsWechatUser 微信用户基础信息
     * @return 结果
     */
    @Override
    public int updateAppletsWechatUser(AppletsWechatUser appletsWechatUser)
    {
        return appletsWechatUserMapper.updateAppletsWechatUser(appletsWechatUser);
    }

    /**
     * 批量删除微信用户基础信息
     * 
     * @param openids 需要删除的微信用户基础信息ID
     * @return 结果
     */
    @Override
    public int deleteAppletsWechatUserByIds(String[] openids)
    {
        return appletsWechatUserMapper.deleteAppletsWechatUserByIds(openids);
    }

    /**
     * 删除微信用户基础信息信息
     * 
     * @param openid 微信用户基础信息ID
     * @return 结果
     */
    @Override
    public int deleteAppletsWechatUserById(String openid)
    {
        return appletsWechatUserMapper.deleteAppletsWechatUserById(openid);
    }
}
